import json


def open_file(file_path):
    """"""
    with open(file_path, 'r', encoding='utf-8') as f:
        lines = f.readlines()
        print("数据总条数为:", len(lines))
        lines = [json.loads(x) for x in lines]
        return lines


if __name__ == '__main__':
    lines = open_file('data.jsonl')
    print(lines[0])
    a =lines[132]
    print(a['comment'])
    print(a['title'])
